package sensorLAN.UICLiente;

import java.awt.SystemTray;
import java.awt.TrayIcon;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class OyenteSalir implements ActionListener {
	private TrayIcon trayIcon;
	
	public OyenteSalir(TrayIcon trayIcon) {
		this.trayIcon= trayIcon;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
    	SystemTray.getSystemTray().remove(trayIcon);
        System.exit(0);
    }

}
